import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SMyRole

export class SMyRole {
  public __write(arg1: SerializeStream): void {
    arg1.writeInt(this.playerId);
    arg1.writeString(this.name);
    arg1.writeInt(this.sex);
    arg1.writeInt(this.camp);
    arg1.writeInt(this.career);
    arg1.writeInt(this.level);
    arg1.writeInt(this.oldServerId);
    arg1.writeInt(this.isMain);
    arg1.writeInt(this.avatar);
    arg1.writeInt(this.photo);
  }

  public __read(arg1: SerializeStream): void {
    this.playerId = arg1.readInt();
    this.name = arg1.readString();
    this.sex = arg1.readInt();
    this.camp = arg1.readInt();
    this.career = arg1.readInt();
    this.level = arg1.readInt();
    this.oldServerId = arg1.readInt();
    this.isMain = arg1.readInt();
    this.avatar = arg1.readInt();
    this.photo = arg1.readInt();
    return;
  }

  public /* var */ playerId!: int;

  public /* var */ name!: string;

  public /* var */ sex!: int;

  public /* var */ camp!: int;

  public /* var */ career!: int;

  public /* var */ level!: int;

  public /* var */ oldServerId!: int;

  public /* var */ isMain!: int;

  public /* var */ avatar!: int;

  public /* var */ photo!: int;
}
